module.exports = {
  publicPath: './',
  productionSourceMap: false,
  devServer: {
    open: true,
    port: 3000
  },
  // 关闭eslint 自动检查代码规范的检查
  // lintOnSave: false
  chainWebpack: (config) => {
    config.optimization.minimizer('terser').tap((args) => {
      args[0].terserOptions.compress.drop_console = true
      return args
    })
  }
}
